package com.gt.entity;

import com.baomidou.mybatisplus.core.metadata.IPage;

public class PagingResult<T> extends ApiResult {
    public Long total;

    public PagingResult() {
        super();
        total = null;
    }

    public PagingResult(T data, Long total) {
        super(data);
        this.total = total;
    }

    public PagingResult(IPage<T> pageInfo) {
        super(pageInfo.getRecords());
        this.total = pageInfo.getTotal();
    }
    public PagingResult(IPage<T> pageInfo, T data) {
        super(data);
        this.total = pageInfo.getTotal();
    }
}